﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Task/Task.master" AutoEventWireup="true"
    CodeFile="DocFileResult.aspx.cs" Inherits="Task_BaseDoc_DocFileResult" StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #DateMenu
        {
            padding: 5px 0 5px 0;
        }
        #menu
        {
            background: #F1EFEF;
            border: solid #CCCCCC 1px;
        }
        #menu ul
        {
            display: block;
            list-style: none;
            margin: 5px;
            padding: 0px;
        }
        #menu ul li
        {
            display: inline;
        }
        #menu ul li a
        {
            color: #000000;
            text-decoration: none;
            padding: 3px;
            font-size: 14px;
        }
        #menu ul li a img
        {
            border: none;
        }
        .jqmWindow
        {
            display: none;
            position: fixed;
            top: 17%;
            left: 50%;
            margin-left: -300px;
            width: 500px;
            background-color: #EEE;
            color: #333;
            border: 1px solid #666;
            padding: 12px;
        }
        .menupath
        {
            color: Black;
            font-size: 14px;
            font-weight: bold;
            padding: 5px;
        }
        .menupath a
        {
            color: Black;
            font-size: 14px;
            font-weight: bold;
        }
        .menupath a:hover
        {
            color: Red;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:GridView ID="gvwFileList" runat="server" AutoGenerateColumns="False" PageSize="20"
            Caption="<span>档案列表</span>" Width="100%" Font-Names="Verdana" Font-Size="12px"
            CellPadding="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
            EnableTheming="False" AllowPaging="True" DataKeyNames="ID" OnRowDataBound="gvwFileList_RowDataBound"
            OnRowCommand="gvwFileList_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                    </ItemTemplate>
                    <ItemStyle Width="3%" Wrap="False" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="名称">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#GetChar(Eval("ID"))%>'></asp:Label>
                       <%-- <asp:CheckBox ID="CheckBox1" runat="server" />--%>
                        <asp:Label ID="Label2" runat="server" Text='<%# Convert.ToInt32( Eval("Num"))==-1?"":Eval("Num")+"、" %>'></asp:Label>
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="re" CommandArgument='<%# Eval("ID") %>'
                            ToolTip='<%#"创建时间"+ Eval("CreateDate") %>' Text='<%# Eval("OldFileName") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="文件数量">
                    <ItemTemplate>
                        <%# GetChildCount(Eval("ID"))%>
                    </ItemTemplate>
                    <ItemStyle Width="12%" Wrap="False" />
                </asp:TemplateField>
                <asp:BoundField DataField="FileSize" HeaderText="大小" DataFormatString="{0} KB">
                    <ItemStyle HorizontalAlign="Right" Width="8%" Wrap="False" />
                </asp:BoundField>
            </Columns>
            <PagerTemplate>
            </PagerTemplate>
            <RowStyle Height="20px" />
            <HeaderStyle HorizontalAlign="Left" />
        </asp:GridView>
    </div>
    <uc1:ListPageContral ID="ListPageContral1" OnPageSizeChange="ListPageContral1_PageSizeChange"
        PageSize="20" runat="server" />
</asp:Content>
